import type { Router } from 'vue-router'

import { authGuard } from './auth'
import { progressGuard } from './progress'

export default function createRouteGuard(router: Router) {
  progressGuard(router)
  authGuard(router)
}
